package com.evl.common.persistence.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 车票订单
 * </p>
 *
 * @author yangliwei
 * @since 2017-06-21
 */
@TableName("train_order")
public class TrainOrder extends Model<TrainOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	private Integer id;
    /**
     * 订单号
     */
	@TableField("order_no")
	private String orderNo;
    /**
     * 创建人id(微信用户id)
     */
	@TableField("create_id")
	private String createId;
    /**
     * 订单创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 订单类型
     */
	@TableField("order_type")
	private Integer orderType;
    /**
     * 订单状态
     */
	@TableField("order_status")
	private Integer orderStatus;
    /**
     * 订单总金额
     */
	@TableField("total_price")
	private Double totalPrice;
    /**
     * 订单总票数
     */
	@TableField("total_count")
	private Integer totalCount;
    /**
     * 始发站
     */
	private String departure;
    /**
     * 始发时间
     */
	@TableField("dep_time")
	private String depTime;
    /**
     * 到达站
     */
	private String arrive;
    /**
     * 到达时间
     */
	@TableField("arrive_time")
	private String arriveTime;
    /**
     * 车次
     */
	@TableField("train_no")
	private String trainNo;
    /**
     * 行程耗时
     */
	@TableField("time_consuming")
	private String timeConsuming;
    /**
     * 主订单号
     */
	@TableField("main_order_no")
	private String mainOrderNo;
    /**
     * 车次id
     */
	@TableField("sta_id")
	private Integer staId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getOrderType() {
		return orderType;
	}

	public void setOrderType(Integer orderType) {
		this.orderType = orderType;
	}

	public Integer getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}

	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Integer getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}

	public String getDeparture() {
		return departure;
	}

	public void setDeparture(String departure) {
		this.departure = departure;
	}

	public String getDepTime() {
		return depTime;
	}

	public void setDepTime(String depTime) {
		this.depTime = depTime;
	}

	public String getArrive() {
		return arrive;
	}

	public void setArrive(String arrive) {
		this.arrive = arrive;
	}

	public String getArriveTime() {
		return arriveTime;
	}

	public void setArriveTime(String arriveTime) {
		this.arriveTime = arriveTime;
	}

	public String getTrainNo() {
		return trainNo;
	}

	public void setTrainNo(String trainNo) {
		this.trainNo = trainNo;
	}

	public String getTimeConsuming() {
		return timeConsuming;
	}

	public void setTimeConsuming(String timeConsuming) {
		this.timeConsuming = timeConsuming;
	}

	public String getMainOrderNo() {
		return mainOrderNo;
	}

	public void setMainOrderNo(String mainOrderNo) {
		this.mainOrderNo = mainOrderNo;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public Integer getStaId() {
		return staId;
	}

	public void setStaId(Integer staId) {
		this.staId = staId;
	}
	
}
